<!DOCTYPE html>
<html>
    <head>
        <title>Crear Calles</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <?php echo link_tag('bootstrap/css/estilo.css') ?>
        <?php echo link_tag('bootstrap/css/bootstrap.min.css') ?>
        <?php echo link_tag('bootstrap/css/layout.css') ?>
    </head>
    <body>
        <fieldset>
            <div class="body" id="container">
                <section id="buttonGroups">
                    <div class="page-header">
                        <h1>Crear Calles</h1>
                    </div>
                    <div class="row">
                        <div class="span8">
                            <?php echo form_error('calle'); ?>
                            <form method="POST" action="/simertweb/calles/guardar" class="form-horizontal">
                                <div class="control-group">
                                    <div class="controls">
                                        <label class="control-label" style="margin-left: 20px"><b>Nombre de calle:</b></label>
                                        <div class="controls">
                                            <input type="text" class="input-xlarge" name="calle" placeholder="Ingrese el nombre de la calle" style="margin-left: -40px">     
                                            <button type="submit" class="btn btn-primary">Añadir</button>
                                        </div>
                                        <br>
                                    </div> 
                                </div>
                            </form>

                            <form method="POST" action="/simertweb/calles/eliminar_calles" class="form-horizontal">
                                <h3>Calles creadas</h3>
                                <div class="control-group">
                                    <div class="controls">
                                        <?php echo form_error('lista'); ?>
                                        <select multiple size="1" name="lista" style="overflow:auto; height: 100px; width: 300px; margin-left: 20px" >
                                            <?php foreach ($listacalles as $fila) { ?>
                                                <option><?php echo $fila->nombre; ?> </option>
                                            <?php } ?> 
                                        </select> 
                                    </div>
                                </div>
                                    <button type="submit" class="btn btn-primary" >Eliminar</button>
                            </form>
                        </div>
                    </div>
                </section>     
            </div> 
        </fieldset>
    </body>
</html>
